#ifndef _CBUGKY_H
#define _CBUGKY_H

#include "CMob.h"

class CBugky : public CMob
{
public:
	//-------------------------------------------//
	// Constructor and Destructor for this class //
	//-------------------------------------------//
	CBugky();
	CBugky( ULONG ID , float Xpos , float Ypos , float deep , float XVelocity , float YVelocity , int width , int height);
	virtual ~CBugky();


	//-------------------------//
	//	Enum : ANIMATION STATE //
	//-------------------------//
	enum ANIMATION_STATE { ANIMATION_STATE_MOVE = 0 , 
							ANIMATION_STATE_STAND = 1 };

	//----------------------------------//
	//	Public variables for this class //
	//----------------------------------//
	void				Init				( LPCTSTR	DefineFile );
	void				SetState			( ANIMATION_STATE state );
	void				Update				( float deltaTime );
	void				Hurt				( CCharacter *pCharacter );

	ANIMATION_STATE		GetState			( );
private:
	//-----------------------------------//
	//	Private variables for this class //
	//-----------------------------------//
	ANIMATION_STATE				m_CurrentState;				// Current animation state of this mob
	
	float						m_fActionTime;				// Amuount time that this mob can do action
	float						m_fMaxTime;					// Max time for each action
	float						m_fInvulnerableTime;		// Amount time that this mob is invulnerable
	float						m_fMaxInvulTime;			// Max invulnerable time
	float						m_fAlpha;					// alpha chanel for some dying effect

	//----------------------------------//
	//	Private methods for this class	//
	//----------------------------------//
	void		UpdateHurt			( float deltaTime );
};

#endif